#include <QtGui/QApplication>
#include <QSplashScreen>
#include <QIcon>
#include "login.h"
#include <QMessageBox>

int main(int argc, char *argv[])
{
    QApplication    a(argc, argv);
    a.setStyle("plastique");


try
{
    Twittoz mainWindow;
    mainWindow.setWindowTitle("Twittoz");
    mainWindow.setWindowIcon(QIcon("../images/ico.png"));
    mainWindow.setFixedSize(800, 700);
    mainWindow.show();

    Login           l(&mainWindow);
    l.setWindowTitle("Identification");
    l.setWindowIcon(QIcon("../images/ico.png"));
    l.setFixedSize(320, 240);

    l.exec();
    return a.exec();
}
catch (std::exception& e)
{
    QMessageBox toz(NULL);
    toz.setText(e.what());
    toz.exec();
}
return (0);
}
